﻿using System;

namespace DBMock
{
    /// <summary>
    /// 验证器特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public abstract class ValidatorAttribute : Attribute
    {
        /// <summary>
        /// 创建验证器实例
        /// </summary>
        /// <returns></returns>
        public abstract Validator GetValidator();
    }
}
